import './assets/main.css'
import {createApp} from 'vue'
import {createPinia} from 'pinia'
import App from './App.vue'
import * as VueRouter from 'vue-router';
// 1. 引入你需要的组件
import {Button, Tab, Tabs} from 'vant';
// 2. 引入组件样式
import 'vant/lib/index.css';
import {Tabbar, TabbarItem} from 'vant';
import { Tag } from 'vant';
import { NoticeBar } from 'vant';
import { Form, Field, CellGroup } from 'vant';
import { Step, Steps } from 'vant';
import routes from "@/config/route.ts";
import { Switch } from 'vant';
import { ConfigProvider } from 'vant';
import { Col, Row } from 'vant';
import { List } from 'vant';
import { Cell } from 'vant';
import { Dialog } from 'vant';
import { NavBar } from 'vant';
import { Toast } from 'vant';
import { Divider } from 'vant';
import { CountDown } from 'vant';
import { Empty } from 'vant';
import { Uploader } from 'vant';
import { PasswordInput, NumberKeyboard } from 'vant';
const app = createApp(App)
const router = VueRouter.createRouter({
    // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
    history: VueRouter.createWebHashHistory(),
    routes, // `routes: routes` 的缩写
})
app.use(createPinia())
app.use(router)
app.use(Button)
app.use(Tabbar)
app.use(Tab);
app.use(Tabs);
app.use(TabbarItem)
app.use(Tag)
app.use(NoticeBar)
app.use(Empty);
app.use(Uploader);
app.use(Form);
app.use(Field);
app.use(CellGroup);
app.use(Step);
app.use(Steps);
app.use(ConfigProvider);
app.use(Col);
app.use(Row);
app.use(List);
app.use(Cell);
app.use(NavBar);
app.use(Dialog);
app.use(Toast);
app.use(Divider);
app.use(CountDown);
app.use(Switch);
app.use(PasswordInput);
app.use(NumberKeyboard);
app.mount('#app')
